-- GENERATED SPELL FOR [Stinglasher] --


function spell0_14661(pUnit, Event) --@Lash,n/a--
pUnit:FullCastSpellOnTarget(6607,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14661', 1000, 1)
end

function spell1_14661(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14661', 45000, 1)
end

function Sorts_14661(pUnit, Event)
local choix_sorts_14661 = math.random(0, 1)
if choix_sorts_14661 == 0 then
pUnit:RegisterEvent('spell0_14661', 1, 1)
end
if choix_sorts_14661 == 1 then
pUnit:RegisterEvent('spell1_14661', 1, 1)
end
end

function mob14661_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14661', math.random(1500, 3000), 1)
end

function mob14661_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14661_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14661_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14661, 1, 'mob14661_Action')
RegisterUnitEvent(14661, 2, 'mob14661_Leave')
RegisterUnitEvent(14661, 3, 'mob14661_Kill')
RegisterUnitEvent(14661, 4, 'mob14661_Die')
